package com.itdev.matcherapp.android.gtalkclient;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.itdev.matcherapp.android.R;

public class TestControl extends Activity {
	private Button buttonOK;
	private Button buttonCancel;
	@Override
	protected void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.main);
		buttonOK = (Button) findViewById(R.id.buttonOK);
		buttonOK.setOnClickListener(new OnClickListener(){
			public void onClick(View button) {
				startService(new Intent(TestControl.this,
	                    GTalkService.class), null);
			}
		
		});
		buttonCancel = (Button) findViewById(R.id.buttonCancel);
		buttonCancel.setOnClickListener(new OnClickListener(){

			public void onClick(View button) {
				stopService(new Intent(TestControl.this, GTalkService.class));
			}
			
		});
	}
	
}
